﻿@model BlogModels.Blog

@{
    ViewBag.Title = "浏览博客";
    Layout = "~/Views/Shared/_LayoutMain.cshtml";
}
@Styles.Render("~/Content/admin/css/maindetails")
<!--main_top-->
<table width="99%" border="0" cellspacing="0" cellpadding="0" id="searchmain">
    <tr>
        <td width="99%" align="left" valign="top">您的位置：博客管理&nbsp;&nbsp;>&nbsp;&nbsp;博客内容</td>
    </tr>
    @*<tr>
        <td align="left" valign="top" id="addinfo">
            <a href="add.html" target="mainFrame" onFocus="this.blur()" class="add">返回上一级</a>
        </td>
    </tr>*@
    <tr>
        <td align="left" valign="top">
            <table width="100%" border="0" cellspacing="0" cellpadding="0" id="main-tab">
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        @Html.DisplayNameFor(model => model.Title)：
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for">
                        @Html.DisplayFor(model => model.Title)
                    </td>
                </tr>
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        @Html.DisplayNameFor(model => model.PicTitle)
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for">
                       图片地址： @Html.DisplayFor(model => model.PicTitle)
                        <img src=" @Model.PicTitle" alt="Alternate Text" height="100" width="100" />
                    </td>
                </tr>
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        @Html.DisplayNameFor(model => model.Content)
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for">
                        @*@Html.DisplayFor(model => model.Content)*@
                        @*Html.Raw(Model.Content) Raw()方法是将带HTML标签的内容以页面的形式显示；参数Model指的是当前页面所绑定的Blog对象  *@
                        @Html.Raw(Model.Content)
                    </td>
                </tr>
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        @Html.DisplayNameFor(model => model.AddTime)
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for">
                        @Html.DisplayFor(model => model.AddTime)
                    </td>
                </tr>
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        @Html.DisplayNameFor(model => model.EditTime)
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for" style="line-height:24px;">
                        @Html.DisplayFor(model => model.EditTime)
                    </td>
                </tr>
                <tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                       操作
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for" style="line-height:24px;">
                        @Html.ActionLink("编辑博客", "Edit", new { id = Model.Id }) |
                        @Html.ActionLink("返回博客列表", "Index")
                    </td>
                </tr>
                @*<tr onMouseOut="this.style.backgroundColor='#ffffff'" onMouseOver="this.style.backgroundColor='#edf5ff'">
                    <td align="right" valign="middle" class="borderright borderbottom bggray">
                        操作：
                    </td>
                    <td align="left" valign="middle" class="borderright borderbottom main-for">
                        <a href="message_replay.html" target="mainFrame" onFocus="this.blur()" class="add">回复</a>
                        <span class="gray">&nbsp;|&nbsp;</span>
                        <a href="add.html" target="mainFrame" onFocus="this.blur()" class="add">不允许显示</a>
                        <span class="gray">&nbsp;|&nbsp;</span>
                        <a href="add.html" target="mainFrame" onFocus="this.blur()" class="add">删除</a>
                        <span class="gray">&nbsp;|&nbsp;</span>
                        <a href="message_info.html" target="mainFrame" onFocus="this.blur()" class="add">查看</a>
                    </td>
                </tr>*@
            </table>
        </td>
    </tr>
</table>
<p>
   
</p>
